import service from '@/utils/request'

const DoorLockApi = {
  // ---------------安全设备----------------
  addDoorLock: function (data) {
    return service.post('doorLock', data)
  },
  deleteDoorLock: function (data) {
    return service.put('doorLock/delete', data)
  },
  editDoorLock: function (data) {
    return service.put('doorLock', data)
  },
  listDoorLock: function (data) {
    return service.get('doorLock/page', {params: data })
  },
  getDoorLockInfo: function (data) {
    return service.get('doorLock', {params: data })
  },
}

export default DoorLockApi
